package top.lyc829.mymusic.adapter.multi.comment

import android.view.LayoutInflater
import android.view.ViewGroup
import com.chad.library.adapter.base.binder.QuickViewBindingItemBinder
import top.lyc829.mymusic.databinding.ItemCommentTitleBinding

/**
 * @Author lyc
 * @create 2021-09-02 10:21
 */
class CommentTitleBinder: QuickViewBindingItemBinder<String, ItemCommentTitleBinding>() {

    override fun convert(holder: BinderVBHolder<ItemCommentTitleBinding>, data: String) {
        holder.viewBinding.commentTitle.text = data
    }

    override fun onCreateViewBinding(
        layoutInflater: LayoutInflater,
        parent: ViewGroup,
        viewType: Int
    ): ItemCommentTitleBinding {
        return ItemCommentTitleBinding.inflate(layoutInflater, parent, false)
    }
}